From: Rui Matos Date: Thu, 5 May 2011 15:09:07 +0000 (+0100) Subject: panel: Don't propagate button-release-event in _onCornerClicked() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8244 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=63b1699a35b6206747dac0e8ed2ac583618a9e64;p=gnome-shell.git panel: Don't propagate button-release-event in _onCornerClicked() Since both the hot corner's ClutterGroup and the hot corner's ClutterRectangle button-release-event is connected to _onCornerClicked() we must handle it there by returning 'true' to Clutter or else _onCornerClicked() is called twice which defeats the HOT_CORNER_ACTIVATION_TIMEOUT logic. https://bugzilla.gnome.org/show_bug.cgi?id=649427 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index 6a24ac99d..64235eda0 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -776,7 +776,7 @@ HotCorner.prototype = { _onCornerClicked : function() { if (!Main.overview.animationInProgress) this.maybeToggleOverviewOnClick(); - return false; + return true; }, _onCornerLeft : function(actor, event) {